home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1334.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  3.4 KB  |  157 lines

  1. 79
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. SetVolume 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows and Macintosh
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baSetVolume sets the volume level of the sound card for wave files and audio CD.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baSetVolume( Device , Volume )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String, Integer. 
  36. --- RECORDSEPARATOR ---
  37. Device is the device to change. Can be:
  38. --- RECORDSEPARATOR ---
  39.  
  40. --- RECORDSEPARATOR ---
  41. Windows:
  42. --- RECORDSEPARATOR ---
  43.  
  44. --- RECORDSEPARATOR ---
  45. "master" 
  46. --- RECORDSEPARATOR ---
  47. sets the master volume 
  48. --- RECORDSEPARATOR ---
  49. "wave" 
  50. --- RECORDSEPARATOR ---
  51. sets the volume of wave and v
  52. --- RECORDSEPARATOR ---
  53. ideo files 
  54. --- RECORDSEPARATOR ---
  55. "cd" 
  56. --- RECORDSEPARATOR ---
  57. sets the volume of audio CD playback 
  58. --- RECORDSEPARATOR ---
  59. "midi" 
  60. --- RECORDSEPARATOR ---
  61. sets the volume of an external midi device 
  62. --- RECORDSEPARATOR ---
  63. "synth" 
  64. --- RECORDSEPARATOR ---
  65. sets the volume of the internal FM synthesizer 
  66. --- RECORDSEPARATOR ---
  67. "master mute" 
  68. --- RECORDSEPARATOR ---
  69. controls the master mute 
  70. --- RECORDSEPARATOR ---
  71. "wave mute" 
  72. --- RECORDSEPARATOR ---
  73. controls the wave mute 
  74. --- RECORDSEPARATOR ---
  75. "cd mute" 
  76. --- RECORDSEPARATOR ---
  77. controls the CD mute 
  78. --- RECORDSEPARATOR ---
  79. "synth mute" 
  80. --- RECORDSEPARATOR ---
  81. controls the built-in synthesizer mute
  82. --- RECORDSEPARATOR ---
  83.  
  84. --- RECORDSEPARATOR ---
  85. Macintosh:
  86. --- RECORDSEPARATOR ---
  87.  
  88. --- RECORDSEPARATOR ---
  89. "speakers" 
  90. --- RECORDSEPARATOR ---
  91. sets the volume of external speakers 
  92. --- RECORDSEPARATOR ---
  93. "wave" 
  94. --- RECORDSEPARATOR ---
  95. sets the volume of the internal speaker 
  96. --- RECORDSEPARATOR ---
  97. Volume is the volume level to set. The volume level can be between 0 (silence) and 
  98. --- RECORDSEPARATOR ---
  99. 100 (maximum). For the mute devices, Volume can be either 1 for mute on, or 0 for 
  100. --- RECORDSEPARATOR ---
  101. mute off.
  102. --- RECORDSEPARATOR ---
  103.  
  104. --- RECORDSEPARATOR ---
  105. Returns:
  106. --- RECORDSEPARATOR ---
  107.  
  108. --- RECORDSEPARATOR ---
  109. Integer. 
  110. --- RECORDSEPARATOR ---
  111. Returns 1 if successful, else 0.
  112. --- RECORDSEPARATOR ---
  113.  
  114. --- RECORDSEPARATOR ---
  115. Examples:
  116. --- RECORDSEPARATOR ---
  117.  
  118. --- RECORDSEPARATOR ---
  119. Director: 
  120. --- RECORDSEPARATOR ---
  121. set OK = baSetVolume( "cd" ,  50 ) 
  122. --- RECORDSEPARATOR ---
  123. set OK = baSetVolume( "master mute" ,  1 ) 
  124. --- RECORDSEPARATOR ---
  125. Authorware: 
  126. --- RECORDSEPARATOR ---
  127. OK := baSetVolume( "cd" ,  50 )
  128. --- RECORDSEPARATOR ---
  129.  
  130. --- RECORDSEPARATOR ---
  131. Notes:
  132. --- RECORDSEPARATOR ---
  133.  
  134. --- RECORDSEPARATOR ---
  135. Not all sound cards in Windows support this function. Some cards will only support 
  136. --- RECORDSEPARATOR ---
  137. some of the device types. They will return 0 if the function is not supported. The 
  138. --- RECORDSEPARATOR ---
  139. function will set the volume on the first sound card found. 
  140. --- RECORDSEPARATOR ---
  141. Some sound cards do not set the volume precisely. For example, if you set the 
  142. --- RECORDSEPARATOR ---
  143. volume to 50, then call the baGetVolume function, it may return 48 or 49. 
  144. --- RECORDSEPARATOR ---
  145. On
  146. --- RECORDSEPARATOR ---
  147.  Macintosh
  148. --- RECORDSEPARATOR ---
  149. , you can also use "master" for "speakers".
  150. --- RECORDSEPARATOR ---
  151.  
  152. --- RECORDSEPARATOR ---
  153. See also:
  154. --- RECORDSEPARATOR ---
  155.  
  156. --- RECORDSEPARATOR ---
  157. baGetVolume